package com.example.bbs.front.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.luo.pojo.comment.dto.CommentDTO;
import com.luo.pojo.comment.entity.Comment;
import com.luo.pojo.comment.vo.CommentVO;

import java.util.List;

/**
 * <p>
 * 文章评论表 服务类
 * </p>
 *
 * @author bin.cn
 * @since 2023-01-19
 */
public interface ICommentService extends IService<Comment> {
    CommentVO postComment(CommentDTO commentDTO);

    //通过帖子Id查询评论树结构
    List<CommentVO> commentTree(Integer questionId);

    //查询用户评论数
    Integer getCountByUser(Integer userId);
}
